package com.cy.java;


import org.junit.Test;

import java.util.Date;

public class StringDateTest {
    /**
     *
     *
     */

    @Test
    public void test2(){
        //构造器一：Date()
        Date date1 = new Date();
        System.out.println(date1.toString());
        System.out.println(date1.getTime());//1599882267594

        //构造器二：
        Date date2 = new Date(1599882267594L);
        System.out.println(date2.toString());


    }







}
